package com.pipi.sso.dao.manager;

import com.pipi.sso.dao.model.MenuDO;
import com.pipi.sso.dao.query.MenuQuery;
import com.pipi.sso.dao.support.PageResult;

import java.util.List;


/**
 * Manager for Menu.
 */
public interface MenuManager {
    /**
     * query count by query condition.
     */
    int countByQuery(MenuQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(MenuQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(MenuDO record);

    /**
     * insert selective.
     */
    long insertSelective(MenuDO record);

    /**
     * select by query condition.
     */
    List<MenuDO> selectByQuery(MenuQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<MenuDO> selectByQueryWithPage(MenuQuery query);

    /**
     * select by primary key.
     */
    MenuDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( MenuDO record,  MenuQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(MenuDO record, MenuQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(MenuDO record);
}